1 This is how a chronicle report looks

This is a showcase of the outputs possible with the {chronicle} R package. For a complete how-to, please refer to the package’s github page.

2 Barplots

2.0.1 chronicle::add_barplot()

2.1 Simple bar plot

2.2 Bars broken by other group

2.3 Bars sorted by value

2.4 Bars sorted by value and broken by another column

2.5 Horizontally

3 Boxplots

3.0.1 chronicle::add_boxplot()

3.1 Simple box plot

3.2 Box plot by groups

3.3 Box plot with jitter

4 Code

4.0.1 chronicle::add_code()

This is an empty canvas for you to include any code you want.

4.0.2 This is some code:

data.table(iris)[, .N, Species]

4.0.3 It can also be evaluated!

library(data.table)
data.table(iris)[, .N, Species]
##       Species  N
## 1:     setosa 50
## 2: versicolor 50
## 3:  virginica 50

5 Densities

5.0.1 chronicle::add_density()

5.1 Basic density

5.2 Density by group

5.3 Faceted densities

6 dygraphs

6.0.1 chronicle::add_dygraph()

6.1 Simple dygraph (in static outputs it will be replaced by line plots)

6.2 Dygraph by groups

7 Histograms()

7.0.1 chronicle::add_histogram

7.1 Basic histogram

7.2 Faceted histogram by groups

8 Line plots

8.0.1 chronicle::add_lineplot()

8.1 Simple line plot

8.2 Line plot with trend

8.3 Line plot with linear trend

8.4 Faceted line plot

9 Rain cloud plots

9.0.1 chronicle::add_raincloud()

9.1 Simple rain cloud

9.2 Rain cloud by group

9.3 Larger denisty kernel

9.4 No boxplot, just the median

9.5 With the mean instead of the boxplot

10 Scatter plots

10.0.1 chronicle::add_scatterplot()

10.1 Simple scatter plot

10.2 Scatter plot with groups

10.3 Faceted scatter plot with trend

11 Tables

11.0.1 chronicle::add_table()

11.0.2 kable

Sepal.Length Sepal.Width Petal.Length Petal.Width Species
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
4.6 3.1 1.5 0.2 setosa
5.0 3.6 1.4 0.2 setosa
5.4 3.9 1.7 0.4 setosa

11.0.3 DT

12 Violins

12.0.1 chronicle::add_violin()

12.1 Simple violin plot

12.2 Violin plot by group

13 Big Bonus! report_columns()

chronicle also includes a function called report_columns(), that will create an entire chronicle report for a single dataset. It includes a comprehensive summary of the data through the skimr::skim() function, along with one plot for each column present in the data: bar plots for categorical variables and rain cloud plots for numerical variables. This gives you an immediate view of a dataset with a single line of code!

report_columns(dt = palmerpenguins::penguins,
               by_column = 'species')

you can see the example of this output here

13.1 sessionInfo

sessionInfo()
## R version 4.0.3 (2020-10-10)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Running under: Windows 10 x64 (build 19042)
## 
## Matrix products: default
## 
## locale:
## [1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252
## [4] LC_NUMERIC=C                           LC_TIME=English_United States.1252    
## 
## attached base packages:
## [1] stats     graphics  grDevices utils     datasets  methods   base     
## 
## other attached packages:
## [1] stringr_1.4.0     chronicle_0.2.5   data.table_1.13.6 magrittr_2.0.1    rlang_0.4.10     
## 
## loaded via a namespace (and not attached):
##  [1] tufte_0.9           lattice_0.20-41     tidyr_1.1.2         ps_1.5.0            zoo_1.8-8           digest_0.6.27      
##  [7] R6_2.5.0            evaluate_0.14       httr_1.4.2          xaringan_0.19       ggplot2_3.3.3       highr_0.8          
## [13] pillar_1.4.7        tictoc_1.0          lazyeval_0.2.2      rstudioapi_0.13     callr_3.5.1         Matrix_1.2-18      
## [19] DT_0.17             rmarkdown_2.6       labeling_0.4.2      splines_4.0.3       webshot_0.5.2       flexdashboard_0.5.2
## [25] rolldown_0.1        readr_1.4.0         htmlwidgets_1.5.3   munsell_0.5.0       tinytex_0.28        compiler_4.0.3     
## [31] xfun_0.20           pkgconfig_2.0.3     mgcv_1.8-33         htmltools_0.5.0     tidyselect_1.1.0    tibble_3.0.4       
## [37] gridExtra_2.3       bookdown_0.21       viridisLite_0.3.0   crayon_1.3.4        dplyr_1.0.2         withr_2.3.0        
## [43] grid_4.0.3          nlme_3.1-151        jsonlite_1.7.2      gtable_0.3.0        lifecycle_0.2.0     scales_1.1.1       
## [49] rmdformats_1.0.1    stringi_1.5.3       farver_2.0.3        viridis_0.5.1       dygraphs_1.1.1.6    ellipsis_0.3.1     
## [55] xts_0.12.1          generics_0.1.0      vctrs_0.3.6         tools_4.0.3         glue_1.4.2          purrr_0.3.4        
## [61] hms_0.5.3           crosstalk_1.1.0.1   prettydoc_0.4.1     processx_3.4.5      yaml_2.2.1          colorspace_2.0-0   
## [67] plotly_4.9.3        knitr_1.31          pagedown_0.13